// anchor 锚点位置 设置对象 参考文档 https://developer.fengmap.com/docs/js/v3.0.10/fengmap.FMMarkerAnchor.html
var searchAnalyser;//搜索服务
var $parent_this;//
var anchorObj = {
    CENTER: fengmap.FMMarkerAnchor.CENTER,
    BOTTOM: fengmap.FMMarkerAnchor.BOTTOM,
    LEFT: fengmap.FMMarkerAnchor.LEFT,
    LEFT_BOTTOM: fengmap.FMMarkerAnchor.LEFT_BOTTOM,
    LEFT_TOP: fengmap.FMMarkerAnchor.LEFT_TOP,
    RIGHT: fengmap.FMMarkerAnchor.RIGHT,
    RIGHT_BOTTOM: fengmap.FMMarkerAnchor.RIGHT_BOTTOM,
    RIGHT_TOP: fengmap.FMMarkerAnchor.RIGHT_TOP,
    TOP: fengmap.FMMarkerAnchor.TOP
}
// 初始化面板设置参数
var panelSet = {
    height: 0,
    x: 12961645.619600184,
    y: 4861864.907483349,
    content: ``,
    domWidth: 185,
    domHeight: 100,
    anchor: 'CENTER',
    collision: false,
    auto: 'on'
}
function latlngToMapXyCoords({ lat, lng }) {
    let mapCoords = fengmap.FMCalculator.latlngToMapCoordinate({
        x: lng,
        y: lat,
    })
    return mapCoords
}

function mapXyToLatlngCoords({ x, y }) {
    let { x: lng, y: lat } = fengmap.FMCalculator.mapCoordinateToLatlng({ x, y });
    return {
        lng,
        lat
    }
}